package com.example.nophase.common;


import com.example.nophase.entity.TokenVO;


import java.io.Serializable;


public class BaseResp<T> implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "是否成功")
	private Boolean success = false;
	
	@ApiModelProperty(value = "状态码",notes="有时处理逻辑时需要")
	private String code = "0";

	@ApiModelProperty(value = "服务器消息")
	private String msg;

	@ApiModelProperty(value = "返回数据")
	private T data;

	@ApiModelProperty(value = "Token")
	private com.example.nophase.entity.TokenVO TokenVO;

	@ApiModelProperty(value = "时间戳")
	private Long timestamp = System.currentTimeMillis();

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public TokenVO getTokenVO() {
		return TokenVO;
	}

	public void setTokenVO(TokenVO tokenVO) {
		TokenVO = tokenVO;
	}

	public Long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}

	@Override
	public String toString() {
		return "BaseResp{" +
				"success=" + success +
				", code='" + code + '\'' +
				", msg='" + msg + '\'' +
				", data=" + data +
				", TokenVO=" + TokenVO +
				", timestamp=" + timestamp +
				'}';
	}
}
